package com.ruoyi.user.domain.dto;

import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class RegisterOrLoginDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiParam("换取手机号code")
    @NotBlank(message = "code不能为空")
    private String code;

    @ApiParam("微信用户openId")
    @NotBlank(message = "openId不能为空")
    private String openId;

    @ApiParam("微信用户unionId")
    @NotBlank(message = "unionId不能为空")
    private String unionId;

}
